#pragma once
#include <iostream>
#include "sdl.h"
using namespace std;
class monster
{
public:
	monster(int z, int t);
	~monster();
	void respawn();
	bool swingDelay;
	int frame;
	int framesEach;
	int frameCal;
	float xVel;
	float yVel;
	float x;
	float y;
	SDL_Rect box;
	SDL_Rect HBar;
	void runInCircles(int deltaTicks);
	void follow(int deltaTicks, int xa, int ya);
	int attack(int armor, int dodgeChance);
	int health;
	int second;
	int maxHealth;
	float armor;
	int strength;
	float dextarity;
	float damage;
	float dodgeChance;
	float critChance;
	bool alive;
	void updateBar();

};

